package nix.spring.annotation;



import nix.spring.domain.Student;

import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Demo1 {

	@Test
	public void fun1() {
		
		ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml");
		Student stu = (Student) ac.getBean("student");
		System.out.println(stu);
		ac.close();
	}
}
